
def gcd(a,b):
    if a<b:
        t=a
        a=b
        b=t
    if b == 0:
        return a
    return gcd(b, a%b)
while True:
    try:
        data = input().split()
        A = data[0]
        B = data[1]
        print(A*B // gcd(A, B))
    except:
        break